Since no hardware modifications are required for this experiment, we will directly use the previous hardware project.
There are two methods: one is to add a new platform project, and the second is to add a new domain to the existing platform project.
Create a new platform project:
The only difference is selecting FREERTOS here:
After creation is complete, the steps to create a new application project are the same as before.
Previous projects were all based on bare-metal development, and the created platform project was also bare-metal based. Therefore, we need to create a new platform project or application project. The difference between the two can be found in the 1-hello_world document.
Create a new application project: File->New->Application Project
Select the already created platform file:
Name the project freertos:
The difference from bare-metal is that in this step, you select the freertos operating system:
Next, select the FreeRTOS Hello World template:
The application project is now created.
After the project is compiled successfully, connect the development board's JTAG to the computer using a Type-C USB cable. Use another Type-C USB cable to connect the development board's PS UART to the computer.
On the computer, open the serial debugging tool MobaXterm and establish a connection with the development board's PS UART.
In Vitis, enter debug mode: under Debug As, select the first option. Run at full speed to see the debugging information through the serial port.
The debugging results are as follows: